//
//  HMLoginModel.m
//  localLife
//
//  Created by Limonwei on 15/11/27.
//  Copyright © 2015年 heima. All rights reserved.
//

#import "HMLoginModel.h"

@implementation HMLoginModel

+(instancetype)shareInstance{
    
    static HMLoginModel *model = nil;
    
    static dispatch_once_t onceToken;
    
    dispatch_once(&onceToken, ^{
        //
        model = [[HMLoginModel alloc]init];
        
        model.isLogin = NO;
        
        
    });
    return model;
    
    
}

-(void)instanceWithDict:(NSDictionary *)dict{
    
    if ([dict isKindOfClass:[NSDictionary class]]) {
        //
        self.user_id = dict[@"user_id"];
        
        self.gender = dict[@"gender"];
        
        self.mobile = dict[@"mobile"];
        
        self.user_name = dict[@"user_name"];
        
        self.nick_name = dict[@"nick_name"];
        
        self.small_avatar = dict[@"small_avatar"];
        
        self.middle_avatar = dict[@"middle_avatar"];
        
        self.remember_me = dict[@"remember_me"];
        
        self.isLogin = YES;
    }
    
}

@end





















